#include"Client.hpp"

int main()
{
    Client c;
    std::cout<<"Client"<<std::endl;
    std::string msg;
    if(c.OpenWritePipe()==false)
    {
        std::cout<<"Server not open"<<std::endl;
        return -1;
    }
    while(true)
    {
        std::cout<<"entry message# ";
        std::getline(std::cin,msg);
        c.SendMessage(msg);
    }
    c.closepipe();
    return 0;
}